Skip to content

Conversation

@albertrodriguezin2
Copy link
Contributor

No description provided.

Issuer issuer();
String validFrom();
String validUntil();
CredentialStatusObject credentialStatus();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per què utilitzem "object"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perquè ja existeix el CredentialStatus que és un enum que conté Withdrawn, Draft, Issued...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Canviar per CredentialLifecycleStatus

return jwtService.generateJWT(payload.toString());
}

private Mono<Void> ensureGrantTypeIsPreAuthorizedCodeAndTxCodeAreCorrect(String grantType, String preAuthorizedCode, String txCode) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⁠creus que es pot separar la reponsabilitat de ensureGrantTypeIsPreAuthorizedCodeAndTxCodeAreCorrect()? Per un costat el grant_type i per altre el pre-authorized_code y el tx_code?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Abans ho teníem per separat (a main està així) i em vas demanar que ho unís en una sola funció.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Separar-ho

}

@Override
public Mono<Void> setJtis(String id, String accessTokenJti, String refreshTokenJti) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quan fas el set del JTI no has hagut de buscar abans el preAuthorizedCode i obtens el CredentialIssuanceRecord?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, perquè el PreAuthorizedCode el rebo amb el body de la request del TokenController.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Demanar directament l'objecte

JsonNode credential = objectMapper.readTree(credentialProcedure.getCredentialDecoded());
return switch (credentialProcedure.getCredentialType()) {
JsonNode credential = objectMapper.readTree(credentialJson);
return switch (credentialType) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

S'hauria de revisar perque el credentialEmployee ja no té signer i l'Issuer deixarà de tenir-lo. Per què s'utilitza aquesta funció?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

S'utilitza en el handleOperationMode del CredentialIssuanceWorkflow, per enviar un mail en el cas d'ASYNC i al handlePostRecoverError del CredentialSignerWorkflow quan no s'ha pogut firmar.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revisar quan Rubén ho tingui corregit (getEmail)

@albertrodriguezin2 albertrodriguezin2 marked this pull request as draft June 16, 2025 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants